Website powered by

Verse - Drift Devices

This is code I wrote to complete a skills test that I was given. It creates a system to calculate and log vehicle speed (in km/h) and drift percentage in real time at 5Hz. A Real-World Timer Device broadcasts tick events and maintains precise timing, along with start/stop controls and current UTC time functionality. A Vehicle Stats Device uses these tick events to calculate the vehicle's speed and drift percentage based on its movement and orientation, logging the results at each interval. The system is modular, efficient, and designed for easy integration and maintenance.